package com.ruoyi.ocean.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 操作日志业务对象 ocean_log
 *
 * @author linziheng
 * @date 2024-05-08
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class OceanLogBo extends BaseEntity {

    /**
     * id
     */
    @NotNull(message = "id不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 账户ID
     */
    @NotBlank(message = "账户ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private String accountId;

    /**
     * 操作内容
     */
    @NotBlank(message = "操作内容不能为空", groups = { AddGroup.class, EditGroup.class })
    private String contentTitle;

    /**
     * 操作前后内容
     */
    @NotBlank(message = "操作前后内容不能为空", groups = { AddGroup.class, EditGroup.class })
    private String contentLog;

    /**
     * 操作对象ID
     */
    @NotBlank(message = "操作对象ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private String objectId;

    /**
     * 操作对象名称
     */
    @NotBlank(message = "操作对象名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String objectName;

    /**
     * 操作对象类型
     */
    @NotBlank(message = "操作对象类型不能为空", groups = { AddGroup.class, EditGroup.class })
    private String objectType;

    /**
     * 操作人
     */
    @NotBlank(message = "操作人不能为空", groups = { AddGroup.class, EditGroup.class })
    private String operator;

    /**
     * 操作IP
     */
    @NotBlank(message = "操作IP不能为空", groups = { AddGroup.class, EditGroup.class })
    private String optIp;

    /**
     * 备注
     */
    @NotBlank(message = "备注不能为空", groups = { AddGroup.class, EditGroup.class })
    private String remark;


}
